package com.youlu.campus.entity;

import com.youlu.campus.base.base.EntityBase;
import lombok.Getter;
import lombok.Setter;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * 活动统计
 */
@Getter
@Setter
@Document(collection = "activity_statistics")
public class ActivityStatistics extends EntityBase {
    @Indexed(unique = true)
    private String activityId;
    /**
     * 活动名
     */
    private String activityName;
    /**
     * 订单数量
     */
    private Integer orderNum = 0;
    /**
     * 商品总数量
     */
    private Integer itemNum = 0;
    /**
     * 买卖商品数量
     */
    private Integer payItemNum = 0;
    /**
     * 赠品商品数量
     */
    private Integer giftItemNum = 0;
    /**
     * 总GMV
     */
    private Double gmv = 0.00D;
    /**
     * 退款人数
     */
    private Integer refundOrderNum = 0;
    /**
     * 退款商品数
     */
    private Integer refundItemNum = 0;
    /**
     * 退款GMV
     */
    private Double refundGmv = 0.00D;
    /**
     * 报名人数
     */
    private Integer joinedNum = 0;
    /**
     * 转化率
     */
    private Double conversionRatio;
    /**
     * 退款率
     */
    private Double refundRatio;
    /**
     * 毛利率
     */
    private Double grossMargin;
    /**
     * 净利率
     */
    private Double profitMargin;
    /**
     * 总成本
     */
    private Double totalCost;
    /**
     * 客单价
     */
    private Double pricePerCustomer;

    private String type;

    /**
     * 用户报名人数
     */
    private Integer userSignUpCount = 0;
    private Integer priority = 0;


}
